package com.vita.core.function;

import java.util.Queue;

public class FuncActuator {
    
    public static <T> Object run(Func func,T t){
        return func.apply(t);
    }

    public static <T,V> Object run(Func func,T t,Queue<Object> bank){
        if(func instanceof Func2){
            Func2 func2 = (Func2)func;
            func2.borrow(bank);
        }
        return run(func,t);
    }


}
